package br.com.buscapecas.action;

import java.sql.Connection;
import java.util.ArrayList;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import br.com.buscapecas.model.bean.PecaBean;
import br.com.buscapecas.model.cursor.PecaCursor;
import br.com.buscapecas.model.cursor.QueryResult;
import br.com.buscapecas.util.Funcoes;


/**
 * @author Maikon Rafael da Rocha
 * @since 01/06/2012 15:46:50
 */
public class BuscaAction extends AbstractAction {

    /**
     * Atributo <code>serialVersionUID</code>
     */
    private static final long serialVersionUID = -4302136179569802640L;

    public void busca(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws ServletException, Exception {
        Connection conn = null;
        try {
            conn = this.getDBConnection();
            String expressao = request.getParameter("expressao");
            if (expressao != null && !"".equals(expressao.trim())) {
                
                
            }
            servletContext.getRequestDispatcher("/htdocs/home.jsp").forward(request, response);
        } finally {
            this.releaseDBConnection(conn);
        }
    }
    
}
